<!-- <div id="childList"> -->

    <div class="card contactDiv" id="contact${i}" <g:if test="${hidden}">style="display:none;"</g:if>>
        <div class="card-header">
            <h5>联系人信息</h5>

            <div class="card-header-right">
                  <i class="icofont icofont-minus text-danger deleteContactDiv"></i>
                  <i class="ion-plus cloneContactDiv"></i>
                <i class="icofont icofont-rounded-down"></i>
            </div>
        </div>
        <div class="card-block">
            <div class="form-group row">
                <label class="col-md-2 col-form-label is-required">联系人姓名</label>
                <g:textField class="hidden" name="contacts[${i}].type" id="contactType"
                             value="${com.next.ContactType.findByName('日常联系人')?.id}"/>

                <div class="col-md-3">
                    <g:textField class="form-control" name="contacts[${i}].fullName" required="required"
                                 value="${contact?.fullName}"/>
                </div>

                <label class="col-md-2 col-form-label">称谓</label>

                <div class="col-md-3" id="salutationDiv">
                    <g:select class="form-control" name="contacts[${i}].salutation" optionValue="name" id="salutationName"
                              optionKey="id" from="${com.next.Salutation.list()}" noSelection="${['': '请选择']}"
                              value="${contact?.salutation?.id}"/>
                </div>
            </div>

            <div class="form-group row">
                <label class="col-md-2 col-form-label is-required">手机</label>

                <div class="col-md-3">
                    <g:textField class="form-control" required="required" name="contacts[${i}].cellphone" value="${contact?.cellphone}"/>
                </div>

                <label class="col-md-2 col-form-label">电话</label>

                <div class="col-md-3">
                    <g:textField class="form-control" name="contacts[${i}].phone" id="phone" value="${contact?.phone}"/>
                </div>
            </div>

            <div class="form-group row">
                <label class="col-md-2 col-form-label">头衔</label>

                <div class="col-md-3">
                    <g:textField class="form-control" name="contacts[${i}].title" value="${contact?.title}"/>
                </div>

                <label class="col-md-2 col-form-label">邮箱</label>

                <div class="col-md-3">
                    <g:field type="email"  class="form-control" name="contacts[${i}].email" value="${contact?.email}"/>
                </div>
            </div>

            <div class="form-group row submitDiv">
                <div class="col-md-12">
                  <button type="submit" class="btn btn-info submitButton">保存</button>
                </div>
            </div>

        </div>
    </div>
<!-- </div> -->
